package com.admin.education.dataTransferObject.activity.Mapper;

import com.admin.education.dataTransferObject.activity.ActivityTransfer;
import com.admin.education.dataTransferObject.activity.Request.CreateActivityRequest;
import com.admin.education.dataTransferObject.activity.Request.UpdateActivityRequest;
import com.admin.education.models.Activities;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.Mappings;
import java.util.List;

@Mapper
public abstract class ActivityMapper {
    @Mappings({})
    public abstract ActivityTransfer mapFrom(Activities activities);

    @Mappings({})
    public abstract List<ActivityTransfer> mapFrom(List<Activities> activities);

    @Mappings({})
    public abstract Activities mapFrom(CreateActivityRequest createActivityRequest);

    @Mappings({})
    public abstract Activities mapFrom(UpdateActivityRequest updateActivityRequest, @MappingTarget Activities activities);
}
